#ifndef STUDENT_PUB_H
#define STUDENT_PUB_H

#include "common_pub.h"

typedef struct {
    char id[MAX_ID_LEN];
    char name[MAX_NAME_LEN];
    char selected_courses[MAX_COURSES][MAX_ID_LEN];
    int course_count;
    float total_credits;
} Student;

int add_student(const char* id, const char* name);
int delete_student(const char* id);
Student* find_student(const char* id);
int update_student(const char* id, const char* new_name);
int student_select_course(const char* student_id, const char* course_id);
int student_drop_course(const char* student_id, const char* course_id);
void display_all_students();

#endif
void display_student_courses();
